/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.sdd.facades.factories;

import com.sdd.entities.Address;
import com.sdd.plains.AddressPlain;
import javax.ejb.EJB;
import javax.ejb.Stateless;
import javax.ejb.LocalBean;

/**
 *
 * @author Carlos
 */
@Stateless
@LocalBean
public class AddressFactoryFacadeBean {

    @EJB
    CustomerFactoryFacadeBean addressFactoryFacadeBean;
        
    public AddressPlain createAddressPlain(Address entity) {
        AddressPlain plain = new AddressPlain();
        plain.setId(entity.getId());
        plain.setCity(entity.getCity());
        plain.setCountry(entity.getCountry());
        plain.setNumber(entity.getNumber());
        plain.setPostCode(entity.getPostCode());
        plain.setStreet(entity.getStreet());
        return plain;
    }
    
}
